package edu.dayu.service.impl;

import edu.dayu.mapper.ActivityTypeMapper;
import edu.dayu.mapper.ArticleTypeMapper;
import edu.dayu.pojo.ActivityType;
import edu.dayu.pojo.ArticleType;
import edu.dayu.service.ActivityTypeService;
import edu.dayu.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityTypeServiceImpl implements ActivityTypeService {
    @Autowired
    private ActivityTypeMapper activityTypeMapper;

    @Override
    public List<ActivityType> activityTypeList(ActivityType activityType) {
        return activityTypeMapper.activityTypeList(activityType);
    }

    @Override
    public void activityTypeInsert(ActivityType activityType) {
        activityTypeMapper.activityTypeInsert(activityType);
    }

    @Override
    public void activityTypeUpdate(ActivityType activityType) {
        activityTypeMapper.activityTypeUpdate(activityType);
    }

    @Override
    public void activityTypeDelete(ActivityType activityType) {
        activityTypeMapper.activityTypeDelete(activityType);
    }
}
